package com.longai.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * User entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "user", catalog = "longai")
public class User implements java.io.Serializable {

	// Fields

	private Integer userId;
	private String name;
	private String nickname;
	private String email;
	private String location;
	private String biography;
	private String profilepic;
	private String gender;
	private String type;
	private Double preferencegens;
	private Double selfgens;
	private String password;
	private String phone;

	// Constructors

	/** default constructor */
	public User() {
	}

	/** full constructor */
	public User(String name, String nickname, String email, String location,
			String biography, String profilepic, String gender, String type,
			Double preferencegens, Double selfgens, String password,
			String phone) {
		this.name = name;
		this.nickname = nickname;
		this.email = email;
		this.location = location;
		this.biography = biography;
		this.profilepic = profilepic;
		this.gender = gender;
		this.type = type;
		this.preferencegens = preferencegens;
		this.selfgens = selfgens;
		this.password = password;
		this.phone = phone;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "user_id", unique = true, nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "name", length = 50)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "nickname", length = 50)
	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	@Column(name = "email", length = 100)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "location", length = 200)
	public String getLocation() {
		return this.location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	@Column(name = "biography", length = 200)
	public String getBiography() {
		return this.biography;
	}

	public void setBiography(String biography) {
		this.biography = biography;
	}

	@Column(name = "profilepic", length = 200)
	public String getProfilepic() {
		return this.profilepic;
	}

	public void setProfilepic(String profilepic) {
		this.profilepic = profilepic;
	}

	@Column(name = "gender", length = 2)
	public String getGender() {
		return this.gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Column(name = "type", length = 20)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "preferencegens", precision = 22, scale = 0)
	public Double getPreferencegens() {
		return this.preferencegens;
	}

	public void setPreferencegens(Double preferencegens) {
		this.preferencegens = preferencegens;
	}

	@Column(name = "selfgens", precision = 22, scale = 0)
	public Double getSelfgens() {
		return this.selfgens;
	}

	public void setSelfgens(Double selfgens) {
		this.selfgens = selfgens;
	}

	@Column(name = "password", length = 20)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "phone", length = 45)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

}